From: Stéphane Démurget Date: Tue, 20 Nov 2012 23:08:23 +0000 (+0100) Subject: unlockDialog: set password char on verif. failure X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5389 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=393c23820af7262fa0c2fb0c863c9172d1bf7f8e;p=gnome-shell.git unlockDialog: set password char on verif. failure Commit c3cab28 removed bits setting the password char that was used to allow typing the password after a failure but before the first question for the new attempt came. Without that code, in complex PAM setups you can end up with a visible password. https://bugzilla.gnome.org/show_bug.cgi?id=687113 --- diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 5cdce9295..4db878c8a 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -341,6 +341,8 @@ const UnlockDialog = new Lang.Class({ this._firstQuestion = true; this._promptEntry.text = ''; + this._promptEntry.clutter_text.set_password_char('\u25cf'); + this._promptEntry.menu.isPassword = true; this._updateSensitivity(false); this._setWorking(false);